home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 393 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.6 KB

  1. Path: news.compuserve.com!newsmaster
  2. From: 100754.2730@compuserve.com (Martin Aupperle)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Exception and what to put into them
  5. Date: Thu, 04 Jan 1996 09:40:23 GMT
  6. Organization: CompuServe Incorporated
  7. Message-ID: <4cg7kr$9iq@dub-news-svc-6.compuserve.com>
  8. References: <49i7hh$aco@news1.mclink.it> <4an868$def@newsbf02.news.aol.com>
  9. NNTP-Posting-Host: dd02-008.compuserve.com
  10. X-Newsreader: Forte Free Agent v0.56
  11.  
  12. dstkelley@aol.com (Dstkelley) wrote:
  13.  
  14. >It is my humble opinion that logging the line number of where the
  15. >exception occured is short sided thinking.  I come from a large
  16. >development environment where many people work on the same code.  As soon
  17. >as other programmers begin modifiying that code, that line number in the
  18. >log file will probably become incorrect due to people adding or deleting
  19. >lines of code in the file and not updating the log message.  I feel that
  20. >informational messages, along with maybe the class or method name, is more
  21. >useful.
  22.  
  23. Before you release a version to testing, you should freeze it (i.e.
  24. nobody is allowed to make any changes any more). Any changes
  25. (including bug fixes) should be made to the NEXT VERSION ONLY!  Then
  26. file name/line number info is very helpful to quickly find the source
  27. of an exception/assertion(precondition/postcondition... IN THE VERSION
  28. UNDER TEST.
  29.  
  30. Using class names/function names instead is much more effort since the
  31. necessary strings cannot be generated automatically. And, btw,
  32. sometimes class/function names change between versions, too...
  33.  
  34.  
  35.  
  36. -----------------------------------
  37. Signatures are a waste of bandwidth
  38. -----------------------------------
  39.  
  40.